﻿@using BonjourQuotation.UI.Models.AccountModel
@model ToolTabColumnPermisionsCanViewGridViewModel

@if (Model.Message != null)
{
    @Html.LabelForModel(Model.Message)
}
@Html.HiddenFor(model => model.ProfileID)
@Html.HiddenFor(model => model.ToolTabID, new { @id = "ProfileToolTabID" })
@Html.HiddenFor(model => model.ToolID, new { @id = "ProfileToolID" })

<div class="row form-row" style="height:138px"></div>
    <div style="width: 581px; min-height: 20px; max-height: 360px; margin: auto; padding-top: 10px; padding-bottom: 10px; ">
    <table class="table table-bordered table-hover table-condensed" style="margin-bottom: -1px !important; width: 560px; background-color: white;">
        <tr>
            <th width=84%; class="GridHeaders">Tool Tab Column Name</th>
            <th width=16%; class="GridHeaders ProfileAllowViewth label_pointercursor">
                <span class="table_inputs_120">Allow View</span>
                <input type="checkbox" class="table_inputs_checkbox" name="ProfileAllowViewCheckbox" id="ProfileAllowViewCheckbox">
            </th>
        </tr>
    </table>
    <div style="height:310px; overflow-y:auto">
        <table class="table table-bordered table-hover table-condensed" style="width: 560px; table-layout: fixed; background-color: white;">
            <tbody>
                @for (int ind = 0; ind < Model.Rows.Count; ind++)
                {
                <tr>
                    <td width=84%;>
                        @Html.LabelForModel(Model.Rows[ind].SelectedToolTabColumnName, new { @class = "table_inputs_460 table_inputs_WithoutBox" })
                        @Html.HiddenFor(model => Model.Rows[ind].SelectedToolTabColumnID, new { @class = "ProfileLineNoChangeDropHide" })
                    </td>
                    <td width=16% style="text-align:center">
                        @Html.CheckBoxFor(model => Model.Rows[ind].CanView, new { @class = "table_inputs_checkbox ProfileCanView ProfileToolElemnetsChange GridElementsChange ProfileCheckBox" })
                    </td>
                </tr>
                }
            </tbody>
        </table>
    </div>
</div>

